//
//  CustomCollectionViewCell.m
//  AFNetWorking再封装
//
//  Created by 刘雪龙 on 2020/3/14.
//  Copyright © 2020 刘雪龙. All rights reserved.
//

#import "CustomCollectionViewCell.h"

@implementation CustomCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.load_image.layer.cornerRadius=16;
    self.load_image.layer.masksToBounds=YES;
}


-(void)setCellContentWithModel:(JsonDataItemModel*)model
{
    
    self.name_label.text=model.name;
    self.count_label.text=model.content;
    self.price_label.text=[NSString stringWithFormat:@"¥ %@",model.price];
    [self.load_image  sd_setImageWithURL:[NSURL URLWithString:model.image] placeholderImage:nil options:SDWebImageRefreshCached progress:nil completed:nil];
    
}

@end
